package 复杂的成员初始化_static;
class Bowl{
	Bowl(int marker)
	{
		System.out.println("Bowl("+marker+")");
	}
	void f(int marker)
	{
		System.out.println("f("+marker+")");
	}
	
}
class Table{
	static Bowl b1;
	static {
		b1=new Bowl(1);
		//System.out.println("println");
	}
	Table()
	{
		System.out.println("Table()");
	    b2.f(1);
	}
	void f2(int marker)
	{
	System.out.println("f2("+marker+")");
	}
	static Bowl b2=new Bowl(2);
	
}	
public class TestBox {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println("before");
		
		new Table();
		System.out.println("After");
		t.f2(1);

	}
	static Table t=new Table();

}
